package org.parademo.dao;

import org.hibernate.SessionFactory;
import org.parademo.model.AddressEntity;

/**
 * @author ajit
 */
public class AddressDao extends GenericDao<AddressEntity> {

    public AddressDao(SessionFactory factory) {
        super(factory);
    }

    public AddressEntity getTopicById(long addressId) {
        return (AddressEntity) getCurrentSession().get(AddressEntity.class, addressId);
    }

}
